Corrected some bugs with the generation of Prism files