John McCarthy <jgmcc@magma.ca> keep_alive() fix