Fixes bug when trigger paella.events.resize event