Fixed type error with render lib clear function.