fix error message when extra properties are passed