Fix small issue with weight capture