fix return in constructor