inheritance bug