fixed critical bug (double boundary at the end runs daemon in infinite loop)