Fix problem with adding transaction method