Fixed minor bug causing a panic when calling setcharimg command