bugfix: Fatal error: 'break' operator accepts only positive numbers