Fix third issue mentioned in #2169

Signed-off-by: John Rayes <live627@gmail.com>