a inheritance bug fixed