Thoughts on rogue's skills hitting random objects nearby instead of mobs?

It has happened to me many times when my charged aimed shot hits a random nearby barrel. Is this supposed to be a game mechanic? If it is, its hella annoying.

I think STS should add priority in skills.
Mobs>Random Objects

Sent from my SM-G935T using Tapatalk