Fixes bugs with shader importer and reader