Fixed issue with conditions in encrypted models