fixed conversion errors