Fixed strict warnings due to parent class compatibility