fix modal when create new class