Fixed api log in flow