Fix bugs in ConvPoolLayer