buggy fix inheritance