fix to eliminate the extra created transaction