Fixed potential crash; removed debug message