Maybe the spell didn’t work on Henry or maybe Emma see Regina doing this and walks up in the middle of it ❓
I think that Tamara/Greg needed Hook for his ship only, but get the beans instead after shocking Regina so they ditch Hook because they don’t need him now.
In regards to Regina perhaps her deal was the same thing using the beans but plays Hook telling him how she can get rid of everyone including Gold with her plan but forgets to tell him that she will be getting rid of him too at the same time. 😉