Fix deserialisation of prerequisites