fix calling parent constructor