camera crashes on mobile, possibly due to alert