fixed a bug that prevente the densitties to be calculated on ideal helices