fix small render bug