fix logic compiler