corrects bug in home view