Fixed debugging bug