proper way to fix static inheritance bug