Fixed errors in setengaged.