Various fixes in robot behavior.