Fix condition on fs_perm, it may be None