Fixed up the buffer to the correct format