fix object initialisation in constructors