error fix for paparpase.js