Fixed an error where a nonexistant method was called