fix atom dependencies finder algorithm