0.5.1

Some small bug fixes.