Fixed issue with allocation of nodes.