Fix wrong condition for checking shortcut info