Minor bug fixes in asset pipeline