Fix of the absolutely non-sense code.