Fixed pointer parameter passing issue