fix bug in process_status_email.rb