fix broken create logic