fix execute sql crash bug