fixed fn reference issue