Fixing time error