Proximity sensor fix