Fix undefined property  when creating new space