fix senderror handling