removed debug window, still with a bug