fix logic

@hughker @jayvin re: “Unprocessable entity” yes, my bad