Fixed resize function's error handling

If the string can't be converted to a float, we just set it to a default
of 400f.