Fix bug: headers lead to position offset