CWM Loop Fix

thanks @KINGbabasula