Fix 'keepOpen' always true (oops!!)