Fixed console Error

title says it all