Fixed logImpression bugs