Fixed a small issue in handling assets directory