Fix another problem with the tentative fix for #1162. Don't code at 2AM

Signed-off-by: Ross Allan <rallanpcl@gmail.com>