fix time element resizing