fixing is_active error