fix redirect and node controller