Fixed updateRule not working properly