update version
fix potential reference to undefined object