fix for not showing anything in pending list if name is not entered