...except for a liiiiittle bug on malformed input