update blueprint and fix index out of bounds exception