Fixed bug with Transaction.setOnPhase which resulted in it always being set true