fixed a few error related to serializeable inheritance