Fixed thread end indicator issue and small style change to debug indicator