fix some overlay bugs in smeite.js