bug 1295: replaced the functionality in function fix_assurer_flag