Updated for but for bad URL check