Fixed minor bugs in pointing and assignment