Fix bug in binary file parsing that caused markers not to be read properly