Update 0.5.9

Fixes a few bugs