fix weight calc