fixed bugs sans-jslint