Fixed error in post update