fix exception in chrome console