Fixed swap variable so it returns expected format.