add another missing learning mode error check