Minor Fixes

Repaired Mouse Detection