remove unnecessary invalidate