fixed the resizer