Fixed an undefined argument in create domain record function