Fixed retrievel of blocks two times for data and type setting