contract bugfix 2