Fix multiple crash bugs on GestureDector (with double-finger) and ReaderFrontLight (closes Issue #165)