fix incorrect app version comparrison