fix overlay esc

See #598.