Fixed wrong type compiler warning