Make sure to check version.

Somehow this line went MIA when refactoring some code

Change-Id: I7e4fbe7dda16e2e33d250b0d32427d0da00e82a3