fixed some small bugs for visitors