Fixed active record bug on editor controller