fix: inheritance bug