Applied resize bugfix