fixes tecla-framework issue 182

The code was modified as a result of fixing tecla-framework issue 182.