0 regarded as false in anchor() function. fixed