fixed issue in compute