fixes bug in create