dependency fix imagecount and positions count