Many expressions refer to layer names. In other words, the layer names are part of the text of the expressions. If you change layer names after adding an expression, the expression will not automatically update and use the new name. If an expression references an old name, it won't work any more. So it's best to name your layers before adding expressions to them.