Fix execute scalar bug

cc @BlairAlegroTech