bug fixed: TotalNbrofcols, wrong variable

Signed-off-by: TheTesla <stefan.helmert@gmx.net>