time error bugfix