fix boot bug by waiting for display