Fix state handle.