Minor bugfixes in rs2aiml.pl