fix nil submission issue