fixed exception occurring when buff target was null