As I stated previously that should be some error on your code. Some plugin or some configuration that it's behaving in an unexpected way. Start from one of the samples without modification, verify that it works fine and then try to apply little by little your changes.
Re: Anchor Links
Re: Anchor Links
Re: Anchor Links
Re: Anchor Links
Re: Anchor Links
Re: Anchor Links