Solving strange bug.