fix middle click crash
fix