Fixed issue with resizing bounds