Moved update_np_boundary before update_up