Fix PrefixLoader ignoring globals

Since 6fa6cb0e.