debug mode bugfixed, 3.1 finished

Signed-off-by: dHeyne <c.loc@hotmail.de>