fixed previous 'bad request' error