Added int cast in transaction