bugs with adding ways and relations fixed