fixed swap error in data