issue #5 fix updatind date_ended