fixed error on contact sensor