Fixes bug in favoriting