fixed a bug that called a method in the wrong model