Corrected NaN bug

- wrong size count for output (wrong map oject)