Fixed affix.js logic to remove redundancies.