fixed uncaught exception in Google Chrome