minor bugfix to response errors