fixed bug preventing random choosing of neurons when all empty