Fixed vertical resize bug