Fix parent clazz dependencies issue