If you shuffled the deck differently it would of been better. Fly in-> fly out/in again 'then' do your 2 land border allowances. That would garnish you 8 months.
yes you must 'open the page' in your passport where your visa is, to show the Officer. Sadly you've fallen into one of the many traps and he did not see the Visa you had precured.