Fix bad logic in value optimisation
version: Bump to 0.1.2