Incorrect parameter structure being built