fixed a bug of calclock