Fix error on resource types parsing