try to handle resize