fix a positioning issue and a resizing issue