To mix up something or act in a confused manner is to muddle the situation.