Working resize after render