fix bug NullPointerException on update process and right click on main table