fix route check