fixed render bug