Empty version check fix