Fixed minor bugs for asset pipeline