Fixed the State constructor