Fixed the compiled version of the is_granted expression function