Fixed a char to int conversion