Fixed animation behaviour when table view is in edit mode.