Fixed updateRule method