Fixed small bug from #issuecomment-12137287

See https://github.com/gleez/cms/issues/48#issuecomment-12137287