Fixes #646

test fixed