fix for println

Please review and merge it.
test