Fixed error console issue