fixed bad update