fixed create assignment  bug