fixed redirect if block doesnt exist