Fixed up the script component constructor.