Fixed Bug Where D1 became corrupted