fixing debug