Fixed an issue with bad requests