fixing error response of parse methos