fixed bug in partial DOM updating