Fixed form update bug