Fix compilation warning

Assigning id to integer value.