Removed ugly fix that removed the last datasource in an array.

Signed-off-by: stefanlind <stefan.lind@esss.se>