Fixes bugs in minifier