Fixed problem with affected()