fixed conversion warning