Fixed a bug with script linking.