Optimized hero. Fixed the exception when gather null object