Fix compilation warning due to incorrectly specified type