fix for complex views