Fixed bug on task retrieval for admin ui.