attempt to fix byte swap