fixed bug with entity list

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>