Fix issue #2219

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
Please add a comment why this is necessary.