fix weak dependencies with versions