Fix debug method