Monoenergetic electron beams have been generated in the self-injection scheme of laser acceleration. In applications of these laser accelerated electron beams, stable and controllable electron beams are necessary. A stable electron beam is generated in the self-injection scheme by using a nitrogen gas jet target. We found the profile of the electron beam was manipulated by rotating the laser polarization. The electron beam is in the first bucket of the wake wave. In the energy space, transverse oscillation is observed when the laser pulse has S-polarization. The direction of the electron beam is controlled by the gas jet position.