Correct the patch as per RB JS guidelines