Fix X/Y random char bug