Fixed calls that were getting errors and going to the console.