fixing error with reference to target assertion