Correcting use of symbol instead of string when calling with_state