fix application hmvc handling