fixing warnings in DEBUG mode