fixed render problem