fix bug in homepage interaction