Fix clock-in function.