Properly check return error when filtering mechs