fix in calling debug