fix crash in constructor