Fixed bug on resources service to class migration