Fixed statement termination issue