fixed time.sleep related error in render function