fixed console log error