fix fib5 porting incorrectly