Fixed duplicating vote bug resulting from fixing undefined property bug