Line trace does not get hit location against a bsp

I am currently using a line trace for a gun and using hit location to spawn a niagara system. However, the line trace seems to pass through BSPs and inconsistently. On the same bsp brush without any other things in the way, sometimes the line trace would hit the brush at the correct location and at other times it passes through.