Fixed bugs in clock app