Fix the complete option

Fix the complete option to stop these errors: 'Uncaught TypeError: Cannot call method 'call' of null'