Performance fix for changing dimension effect