cwm fix

thanks to munjeni:)