Fixed bad request issue