Default [STOCK] Camera Problem

Whenever I want to take a picture using the stock camera it works when I take the picture, but when I try to tap the Square box in the left hand corner to check out the photo everything stops for a second, and the picture deletes itself and goes to the last picture I took before the other one, then sometimes if you go back to use the camera it says error cannot connect to camera this randomly happen out of nowhere my camera was fine before

Sent from my SAMSUNG-SGH-I337 using XDA Free mobile app
JB isn't Justin Bieber, it's Jelly Bean