prevents error in firefox

Very small change to prevent error message (TypeError: setting a property that has only a getter) in firefox