Added false deadlock
Fixed seg fault in building afs program tree