fix bug in navigation controller