Try to fix issues with resize