fixing failure when zaid is 0