fixed a bug: Uncaught TypeError: Cannot call method 'call' of undefined