Added decoding on index assign
Quick fix function attribyte