fix producer initial segmentation fault
producer works