Bug fix for id aliases