Fixed bug in clock in