Fixing find available algorithm

[merge]