MDL-21782 fixed wrong removal of hidden courses again - lot more thanks to Jay Knight for the report!