Missing check for uisource. Fixes #4398