Fixes for warnings - thanks to edogawa
Fix return value
Change debug text