Added console error fix