api list entities bug fix