bug fixed  fixes #1