fixed console log issue