fixed str(p) issue