Needs to wait a bit for resize to work