Bugfix: Set parameter dim from indices (not data)