bug fix for start thin in foreground