Fix message
Properly allocate memory for values