fixing element resizing because duh. - Fixes #278