Fix wrong function to domain mapping