Removed unnessisary error code