Fixes bug. Removes unused config part.