Stop app from crashing on WP when it calls mouse code