Fixed some lines which created warnings we just do not need.