AB, since I know you have a similar one, if the top piece unattaches itself, it's because the screw that hold the two pieces together turns with the top, eventually unscrewing itself. Use a bit of super glue to firmly attach the screw end into the moving portion.