Added missing return that caused a warning debug.log