Fixes issue 252

Changed HashMap to LinkedHashMap so that the order of parameters are kept. HashMap was causing a weird reorder of the parameter name.