Input.GetMouseButtonDown Code Running When Canvas Buttons Pressed

I am making a shooting game and when user clicks on the screen the shooter shoots. The problem i am having is when user click ui buttons the shooter still shoots. Shooting code is in FixedUpdate in Input.GetMouseButtonDown Tried to handle but nope didnt work.