bug fixed for the clear demo