Upgrade to 0.5.0 by head