Fixed bug with self._level