Fix determining constraints with sandbox sources present