stats: Prevent nan on output