Fixed bug with status incorrect update