another fix for the same bug on the main table view controller