fixes type in dpic js.