Fixed bug in update interval