Middle click bug fix

middle click now functions correctly.