fixed self-assessment == 'undefined' bug