Change default sampling down factor to 4
Fix null pointer issue