Only second sample calculates properly