-corrected bug setHold function