fix for error reply