fixing bugs on create assignment