fixed bug in status updating