Fixed bug with invalid type in state files.