bugfixes to convnet2