fix for a nasty bug with aliases and reloading