fixed conversion error