LUI: Fix some issues causing crashes in the source view