Fixed bug when returning a list.