Fixed Cannot call method "error" of undefined error