remove spaces and lock last dependency