fixes issue with misc.js