Bad output fix.

Removed NaN output when starting conditions are very bad.