fixed implicit type cast