Fixed segfaults when parsing cover input