Fixed bug in mapping from parameters to hypercube