Fixed extension substring issue with static content