added layer when layer creation fails