extra space was causing data corruption