fixes #1

@wmene please review