Returning new instance correctly

It's a simple fix to solve a bug which was introduced with last PR.