fixing debugging error