fixed clock bug