fixes #740

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