Fix profile lookup