Bot dont return to town after dead

hi @Ryan the bot dont return to town if it died

settings i use is return if :
dead [x]
not resurrected 3 min [x]
if dead outside training area [x]
hp < 8 [x]
mp< 5 [x]
invin full [x]
weap dura [x]
armor dura [x]
if pet dead [x]

could if be that the bot trys to use return scroll becurse the pet is dead and it cant use it becurse the char is dead to so it wall also block the 3 min delay