solved bugs on calling super constructors