Fixes notice when template label is not set