Fixed crash for when the user rapidly presses capture