Added some code to avoid 400 error when changing the status too fast from the webpage