Help with mouse not selecting blocks properly

when i move my mouse around in the editor, the blue selection box sometimes locks on to random blocks and wherever i click with my mouse, the block with the blue box takes priority. how can i fix this?

this is probably due to the hit box being a different scale to your selected item this also might of happened if you shrank or enlarged your item