Fix set flag to decide if shows onMetadata and so on