get rid of artifact when close to walls