fix for bug - clicks outside of grid