fixes in Asset helper which were causing fatal error, and some code optimalization