partial fix for #889

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