Fixed problem with debugging