Fixed remote error handling, please tell me what I did wrong.