AppGyver ignoring condition statements in logic flow

We have a logic loop that runs on app launch to push on-device records to the cloud. The loop is to perform bulk uploads of records at a time that are collected while a user is offline.

The data is uploading correctly to the API we have set up. However, we are filtering the records where submitted = true and uploaded = false. The app is reading this while it’s open and we’re working on it, but as soon as we close it and open it again, it reuploads all records even where submitted = false and uploaded = true. How do we fix this? What is the reason why the filtering is not working?