fixed a potential problem with the resize... i dunno WHAT the problem was, but i fixed it