hax to make ajax flow state work