Removed bug with shader init function