fixing debug issue