small fix for constructor