Fix template error when creating shelves