Fixed bug to make node foreman correctly work