Fixing debugging message fatal error