fix setting reshape parameters

Signed-off-by: Axel Davy <axel.davy@ens.fr>