After Unpooling, the sum of activation value are changed!

I do unpooling for Max2d_pooling layer in Alex model, the sum of input and the sum of output are not the same. BTW I set the correct output_size and other parameters. The value is not placed at the position that indices indicate. Is that a Issue there?