fix race condition in lazy preview loading