fixed inheritance

@quamilek