Remove logging undefined error