fixing issue with compiled views and index validation