removed infinity in common.js