fix for display refresh