Fix profiles() method bug