Debug before assignment to prevent exeption