fix bugs in status changes