fixed implicit type conversion warning