preparing automatic repair loop black screen