Fixed append bottom and right bugs