Fix incorrect creation of container specs