fixed type in dal with simplejson, thanks Mart