I often see complaints about this problem, but I can't reproduce it myself to understand the cause and fix it. I suspect that anchordocking is initialized before the metadarkstyle is initialized. Everything works fine for me, as I don't try - it doesn't reproduce. Are you running lazarus with some command line options? Are you using configuration files?