Fixed error introduced in previous (untested) commit. Never code in a hurry :)