fixed bug with calling callback after saving minified file