add nil checks for Votes and Block