Fixed broken resize