Small inheritance bug