fix for trying to resize swap space