fixed IO bugs for loading genome