Bump ks dependency to 0.5.1