The front sight or gas block or whatever you have (sorry, hard to tell from you post) only goes in one place and alignment is critical.

Maybe be try to post up a picture or two so someone can help you diagnose it.