Fix available resources bugs.