Fixed Boolean logic in Loader