Remove undefined variable in mobile shell handler