Fixed TypeError in Failed Handling