Fix of undefined var $level