Prevent errors from client script