Fix error 500 on subject modification