Missed return in optimized case