fixing errors fixes #2