Fixed two crashes in clock_in view.