Removes empty instances