Fixing bugs around lesson date search