fixing problems with minifying