Fixed signature problem in getState