fixing bug in visitors controller