code fix and related link