Fixed compiler warnings.
This call will not affect the performance.