Fix loggin - fixes #50