Fixed Bug in Debug Version