Fix access to getstate