fixing adding transaction