fixing a bug and a notice

The bug came from a bad change here:
https://github.com/misterbisson/bcms/commit/443c9ca1e45dc612024ec66593656ff500a4a170#diff-cb8e9517997e00b67c9aaeb3c0a3215aL122

The notice was because `classes` wasn't getting a default value