fixes proximity sensor