bugfix readnamdbin()