Do u play the same way when U hit a set on the flop and it has a flush(/or str8) draw??
PokerStars No-Limit Hold'em, $0.02 BB (5 handed) Hand History Converter Tool from FlopTurnRiver.com (Format: FlopTurnRiver)

Hero ($2.74)
Button ($0.93)
SB ($4.80)
BB ($7.37)
UTG ($2.98)

Preflop: Hero is MP with A, A.
1 fold, Hero raises to $0.07, 1 fold, SB calls $0.06, BB calls $0.05.

Flop: ($0.21) 5, A, 8 (3 players)
Hero bets $0.1
Final Pot: $0.21