Fixed names of factorymethods.