Trying to fix a bug where voting for posts doesnot work