Fixes problem with getAvailable