Fix incorrect parsing of format capabilities. #323