fix #2120

Signed-off-by: Illori <illori@simplemachines.org>