Fix #51 (reading headers)