Fix issue #2219

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>