Fixed deprecation bug on modal in course edit view