Fix text error out of range