quick bugfix on resizer function