Bugfix for incompatibility with Avisota. Thanks to Stefan Lindecke for pointing it out.