fixed restore active grid on resize and init