added fix for middle click