Patch to fix array out of bounds in dgate.cpp