Fixed is_allowed.