fix bug for showing entry with nil category