Fix assessment function