Fixed thread problem in record method.