Fixed the is_valid filed