Fix debug end