fixing bugs for mobile devices.

Signed-off-by: Brandon Ewoldt <bewoldt1@gmail.com>