Repositioning legend. Fixes #254.