use right index, use Console.warn
get rid of other Console.warning too