Attempt to assign property "params" on bool