Fixed issue with duplicate dependencies when calling "define"