Integrity check custom theme

I have an unsigned custom theme which has been added to excluded_directories in the config.php. When doing an integrity scan it reports all is good. As soon as I login as admin and go to app, I get integrity check failed. I have to rescan to solve this issue. However as soon as you click Apps again, it's back.