fix bugs in fen route implementation