Fixed issues in handling /assets directory