fixes #976

fix for #976

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>